// app.js
import './utils/utils'
import './utils/http'
App({
  token: null,
  refreshToken: null,
  onLaunch() {
    this.token = wx.getStorageSync('token')
    this.refreshToken = wx.getStorageSync('refreshToken')
  },
  // 登录的时候 存储token相关的方法
  setTokenInfo(key, value) {
    this[key] = value // 将token和refreshToken 存储app实例上
    // 将token和refreshToken存储到本地一份
    wx.setStorageSync(key, value)
  }
  
})